const express = require('express');
const router = express.Router();
const { auth } = require('../middlewares/auth');
const exerciseController = require('../controllers/exercise.controller');

// Protected routes
router.post('/generate', auth, exerciseController.generateExercise);
router.post('/shuffle/:id', auth, exerciseController.shuffleExercise);
router.get('/history', auth, exerciseController.getHistory);
router.delete('/history/:id', auth, exerciseController.deleteHistory);

module.exports = router; 